<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common.jspf"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>

<body>
	<center>
		<div style="margin-top: 150px">
			<div id="p" class="easyui-panel" title="登录"
				style="width: 400px; height: 250px; padding:30px;">
				<form id="ff" method="post" action="user/login">
					<table cellpadding="5">
						<tr>
							<td style="width: 80px;text-align: right;">账号:</td>
							<td><input class="easyui-textbox" style="width: 200px" type="text" name="account"></input></td>
						</tr>
						<tr>
							<td style="width: 80px;text-align: right;">密码:</td>
							<td><input style="width: 200px" class="easyui-textbox" type="password" name="password"></input></td>
						</tr>
					</table>
				</form>
				<div>
					<label  style="width: 200px;margin-left: 100px;color: red" >&nbsp;</label>
				</div>
				<div style="text-align: center; padding: 5px">
					<a href="javascript:void(0)" class="easyui-linkbutton" style="width: 200px;margin-left: 60px"
						onclick="submitForm()">登录</a> 
				</div>
			</div>
		</div>
		<script>
			function submitForm() {
				$('#ff').form('submit',{
					success:function(msg){
						if(msg == "ok"){
							location = "home/home";
						}else{
							$("label").text("账号或者密码错误!");
						}
						
					}
				});
			}
		</script>
	</center>
</body>
</html>